package com.imooc.repository;

import com.imooc.dataobject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * ProductInfo Repository
 * @author liuhuan
 * @date 2018/7/5 10:12
 * @description
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo,String>{
    /**
     * find ProductInfo by product status
     * @param productStatus
     * @return
     */
    List<ProductInfo> findByProductStatus(Integer productStatus);


}
